package Behavior;

import Impl.ShootBehavior;
import Impl.Target;
import Model.*;
public class PlaneShoot extends ShootBehavior {
   @Override
    public void shoot(Target target){
        if(target instanceof Plane){
            Plane plane = (Plane) target;
            plane.setState(false);
            System.out.println("i am a plane , i shoot");
        }
    }

    @Override
    public void shoot() {
        System.out.println("error using");
    }
}
